package com.example.dto;

import com.example.model.dto.BaseDTO;
import com.example.model.dto.BaseDateDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.DefaultGroup;
import com.example.validator.group.UpdateGroup;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import lombok.Data;

import java.util.Date;

/**
 * 口味表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-29
 */
@Data
@Schema(description = "口味表")
public class ZyFlavorsDTO extends BaseDateDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "口味ID")
    private Long flavorId;
    @Schema(description = "口味名称")
    private String flavorName;
    @Schema(description = "口味值")
    private String flavorValue;
}